package com.xzy.generic.bad.example.a;

import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * @author xzy.xiao
 * @date 2023/2/28  19:57
 */
@Getter
@ToString
class BbbEvent extends ApplicationEvent {
    /**
     * 事件类型
     */
    private final OperationType eventType;

    /**
     * 相关数据
     */
    private final BbbData eventData;

    public BbbEvent(Object source, OperationType eventType, BbbData eventData) {
        super(source);
        this.eventType = eventType;
        this.eventData = eventData;
    }
}
